package com.itheima.service.admin;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.domian.Dish;
import com.itheima.domian.vo.DishVo;
import com.itheima.domian.vo.QueryVo;

/**
 * @Author 12441
 * @Date 2022/8/11 15:11
 * @Version 1.0
 */
public interface DishService extends IService<Dish> {
    IPage<QueryVo> findByPage(Page<QueryVo> page, QueryWrapper<QueryVo> queryWrapper);

    void addDish(DishVo dishVo);

    DishVo getByIdWithFlavor(Long id);

    void updateWithFlavor(DishVo dishVo);
}
